(navigation image)
Home Animation & Cartoons | Arts & Music | Community Video | Computers & Technology | Cultural & Academic Films | Ephemeral Films | Movies | News & Public Affairs | Prelinger Archives | Spirituality & Religion | Sports Videos | Television | Videogame Videos | Vlogs | Youth Media
Search: Advanced Search
Anonymous User (login or join us) Upload

View movie

[item image]
View thumbnails
Run time: 68 minutes 40 seconds

Play / Download (help[help])

(123.4 M)Ogg Video
(291.6 M)512Kb MPEG4
(295.6 M)MPEG4


All Files: HTTP
[Attribution-Share Alike 3.0]

Resources

Bookmark

Theme Preprocess Functions: an Introduction

You are using our new video/audio player!
I prefer flash (when possible)
Give us feedback!

How many times has this happened to you: You're theming a Drupal site, writing your CSS and making a few changes to the tpl files here and there. Everything is going great, then suddenly you realize you need to change one of those things that starts with a "$" inside those funny-looking <?php ?> tags. Panic!

You exclaim...

"Crap! Where does <?php print $content; ?> come from?! How do I change it?!"

or maybe...

"Crap! I need to have an extra CSS class on this body tag that depends on the taxonomy of the node on the page! Is that possible?!"

or perhaps even...

"Crap! This view is perfect, and it even says which posts are unread, but I need to have the background color for unread item to be different! How can I get that working?!"

Sound familiar?

Preprocess functions are the diplomats of Drupal themes. They are the missing link between what happens in the modules, and what gets sent to the template files.

In this session, we'll dispel PHP fears, and get our feet wet with a little code that goes a long way to helping out with improving the flexibility of our theme.

Prerequisites: Some experience with Drupal theming, general understanding of the templating system, good understanding of HTML and CSS, some basic familiarity with PHP.


This movie is part of the collection: Community Video

Audio/Visual: sound
Keywords: DrupalCon Copenhagen; Drupal; DrupalCon

Creative Commons license: Attribution-Share Alike 3.0


Individual Files

Movie Files MPEG4 Ogg Video 512Kb MPEG4
day1-room20-3-theme-preprocess-functions.m4v 295.6 MB
123.4 MB
291.6 MB
Image Files Thumbnail Animated GIF
day1-room20-3-theme-preprocess-functions.m4v 5.6 KB
341.6 KB
Information FormatSize
ThemePreprocessFunctionsAnIntroduction_383_files.xml Metadata [file]
ThemePreprocessFunctionsAnIntroduction_383_meta.xml Metadata 1.9 KB

Be the first to write a review
Downloaded 162 times
Reviews


Terms of Use (10 Mar 2001)